<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue.js"></script>
    <style>
      .active{
        background-color: pink;
      }
    </style>
</head>
<body>
  <div id="root">
    <button @click="index=0" :class="{active:index===0}">大连</button>
    <button @click="index=1" :class="{active:index===1}">沈阳</button>
    <button @click="index=2" :class="{active:index===2}">丹东</button>
    <p v-show="index===0">大连</p>
    <p v-show="index===1">沈阳</p>
    <p v-show="index===2">丹东</p>
  </div>
</body>
<script>
  new Vue({
    el: '#root',
    data : {
      index : 0
    }
  })
</script>
</html>